package com.iyoudoock.citymine.constants;


/**
 * Created by Kvin on 2017/5/24.
 */
public class Value {
    public static final String SERVER_NO = "400-0660-567";
    public static final String SEX_BOY = "男";
    public static final String SEX_GIRL = "女";
    public static final int VERIFY_REGISTER = 1;
    public static final int VERIFY_UPDATE = 2;

    /**
     * activity index
     */
    public class Act {
        public static final int MAP = 1;
        public static final int EDIT = 2;
        public static final int REGISTER = 3;
        public static final int MAIN = 4;
        public static final int RECYCLER_BIN = 4;

    }

    /**
     * broadcast or service
     */
    public class Action {
        public static final String NET_STATE_CHANGE = "android.net.conn.CONNECTIVITY_CHANGE";
    }

    /**
     * handler flag  (values of msg.what)
     */
    public class Message {
        public static final int REGION = 21;
        public static final int VERIFY_CODE = 22;
        public static final int VERIFY_SUCCESS = 23;
        public static final int VERIFY_FAILURE = 24;

        //dialog flag
        public static final int LOADING_DIALOG_SHOW = 33;
        public static final int LOADING_DIALOG_DISMISS = 34;
        public static final int DIALOG_SHOW = 35;

        //login
        public static final int LOGOUT_SUCCESS = 41;
        public static final int LOGIN_SUCCESS = 42;
        public static final int LOGOUT_FAILURE = 43;
        public static final int LOGIN_FAILURE = 44;
    }

    /**
     * state
     */
    public class Response {
        public static final int SUCCESS = 1;
        public static final int FAILURE = 0;
    }

    public class Request {
        //camera related
        public static final int REQUEST_PERSON_FRONT = 41;
        public static final int REQUEST_CARD_FRONT = 42;
        public static final int REQUEST_CARD_BACK = 43;
        public static final int REQUEST_CAR_FRONT = 44;

        //
        public static final int REQUEST_DISTRICT_ID = 50;
    }

    /**
     * tab
     */
    public class Tab {
        public static final String START = "start";
        public static final String PROCESSING = "processing";
        public static final String FINISH = "finish";
    }

    /**
     * role type
     */
    public class Role {
        public static final String USER = "A";
        public static final String FLUENT = "B1";
        public static final String COMMUNITY = "B2";
        public static final String RECYCLER = "C";

    }

    /**
     * type
     */
    public class Type {
        public static final String BALCKLIST = "black";
        public static final String COLLECT = "collect";

    }

    /**
     * flag
     */
    public class Flag {
        public static final int STOP_ACCEPT = 0;
        public static final int START_ACCEPT = 1;
        public static final int NO_SERVICE = -1;

        public static final int LOGINED = 1;
        public static final int NOT_LOGIN = 0;
        public static final int LOGIN_AND_EXIT = -1;


        /**
         * http request flag
         */
        public static final String LOGIN = "login";
        public static final String REGISTER = "register";
        public static final String VERIFY_CODE = "verify_code";
        public static final String CHECK_VERIFY_CODE = "check_verify_code";
        public static final String ONE_KEY_BOOK = "one_key_book";
        public static final String SEARCH_AROUND_RECYCLER = "search_around_recycler";
        public static final String LOGOUT = "logout";
        public static final String CHANGE_IDENTITY = "change_identity";
        public static final String HELP_OR_LAW = "help_or_law";
        public static final String FEEDBACK = "feedback";
        public static final String START_ACCEPT_ORDER = "start_accept_order";
        public static final String STOP_ACCEPT_ORDER = "stop_accept_order";
        public static final String ADD_TO_BLACKLIST = "add_to_blacklist";
        public static final String REMOVE_FROM_BLACKLIST = "remove_from_blacklist";
        public static final String BLACKLIST_INFO = "blacklist_info";
        public static final String RESET_PSW = "reset_psw";
        public static final String DISTRICT_INFO = "district_info";
        public static final String CATEGORY_QUERY = "category_query";
        public static final String UPDATE_USER_INFO = "UPDATE_USER_INFO";
        public static final String AROUND_RECYCLER = "around_recycler";
        public static final String CHECK_LOGIN_STATE = "check_login_state";
        public static final String UPLOAD_LATLNG = "upload_latlng";
    }

    /**
     * menu item
     */
    public class MenuItemId {
        public static final int PERSONAL_CENTER = 1;
        public static final int SUBMIT = 2;

    }
}
